uster.name: {{ elasticsearc_uster_name }}

node.name: {{ nodename }}

path.data: {{ elasticsearch_data }}
path.logs: {{ elasticsearch_log }}

bootstrap.memory_lock: true
bootstrap.system_call_filter: true

network.host: 0.0.0.0
transport.tcp.port: {{ elasticsearch_transport_port }}
http.port: {{ elasticsearch_port }}

{% if groups.elasticsearch | length > 1 %}
discovery.zen.ping.unicast.hosts: [{% for esip in groups.elasticsearch %} "{{ esip }}:{{ elasticsearch_transport_port }}",{% endfor %}]
#total number of nodes / 2 + 1
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
{% endif %}

#Access-Control-Allow-Origin
http.cors.enabled: true
http.cors.allow-origin: "*"

index.analysis.analyzer.default.tokenizer: "ik_max_word"
index.analysis.analyzer.default.type: "ik"
